#
# Makefile for the GoAhead web server reference source base
#  for the uClinux OS
#
# Copyright (c) GoAhead Software, Inc. 1995-2000
#
# $Id: Makefile,v 1.67 2010-03-31 13:05:57 chhung Exp $
#


CC=gcc
WFLAGS=-Wall
CFLAGS=-O2
INCLUDES=-Iinclude
LIBNAME=goahead_new

CCGAME_DIR = ./ccgame

all: $(LIBNAME)

CCGAME_CUSTOM_OBJ = $(CCGAME_DIR)/ccgame.o 

LIBNL_OBJ= asp.o balloc.o mime64.o \
			cgi.o default.o ejlex.o ejparse.o form.o \
			h.o handler.o mime.o misc.o page.o  \
			ringq.o rom.o  sock.o sockGen.o \
			security.o sym.o uemf.o url.o value.o \
			um.o umui.o websda.o emfdb.o \
			webrom.o webs.o websuemf.o main.o\
			$(CCGAME_CUSTOM_OBJ)

$(LIBNAME): $(LIBNL_OBJ)
	$(CC) -s -o $@ $^ $(LIBS)


%.o: %.c
	#$(CC) $(WFLAGS) -c -o $@ $(INCLUDES) $(CFLAGS) $<
	$(CC) -c $< $(INCLUDES) -o $@ $(CFLAGS) 